import { useState } from 'react'

function useMinxin(num = 100) {
    const [count, setCount] = useState(num)
    const add = () => {
        setCount(count + 1)
    }
    return {
        count,
        add
    }
}

export {
    useMinxin
}